{include file="header.tpl" title="Bao tri san pham FD"}
<form action="" method="post" name ="tongquat" target="_self">
 <span style="color:#FF0000">{$valueminmax} {$errorlaisuat} </span>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="2">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
   {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>
  <tr>
    <td width="15%">{$lbl_masanpham}</td>
    <td colspan="3" style="color:#FF0000" nowrap="nowrap">
	<select name="TYPE">
		{foreach from=$TYPE item=type}
			<option value="{$type}" {if $type eq $activeTYPE} selected="selected" {/if} >{$type}</option>
		{/foreach}
	</select>
        <input name="PRDCODE" id="PRDCODE" type="text" style="background:{$colormasanpham}" value="{$PRDCODE}" size="20" maxlength="10" {if $activefield eq 'enabled' } readonly="readOnly"{/if} />
        *
        <input name="PRDDESC" type="text" style="background:{$colortensanpham}" value="{$PRDDESC}" size="50" maxlength="50" />
      *
      <input type="submit" name="find" value="    " id="replacement_find"  /></td>
  </tr>
  <tr>
  	<td>
		{$lbl_loaisanpham}	</td>
	<td>
	<select name="FDTYPEtmp" disabled="disabled">			
		{foreach from=$FDTYPE key=k item=v}
			<option value="{$k}" {if $k eq $activeFDTYPE} selected="selected" {/if} >{$k} - {$v}</option>
		{/foreach}
	</select>
	<input type="hidden" name="FDTYPE" id="FDTYPE" value="{$activeFDTYPE}"/>	</td>
    <td>{$lbl_PARWDRL} </td>
    <td><select name="PARWDRL">					
		{foreach from=$cbo_PARWDRL key=k item=v}
			<option value="{$k}" {if $k eq $PARWDRL} selected="selected" {/if} >{$k}</option>
		{/foreach}
		</select>	</td>
  </tr>
  <tr>
  	<td>
		{$lbl_PMNBTP}	</td>
  	<td>
		<select name="PMNBTP">	
			<option value=""></option>						
		{foreach from=$cbo_PMNBTP key=k item=v}
			<option value="{$k}" {if $k == $PMNBTP} selected="selected" {/if} >{$k} - {$v}</option>
		{/foreach}		
		</select>	</td>
	<td>{$lbl_cosonamtinhlai}</td>
  	<td><select name="YEARBS" size="1" >
      
      {foreach from=$YEARBS key=k item=v}
	  	
      <option value="{$k}" {if $k eq $activeYEARBS} selected="selected" {/if} >{$v}</option>
      
	  {/foreach}
    
    </select>		</td>
  </tr>
  <tr>
    <td>{$lbl_loaitiente}</td>
    <td><select name="CURCODE" size="1">
			{foreach from=$CURCODE item=curr}
			<option value="{$curr}" {if $curr eq $activeCURCODE} selected="selected" {/if} >{$curr}</option>
		{/foreach}
		</select>	</td>
    <td width="15%">{$lbl_ngayhieuluc}</td>
    <td><input type="text" value="{$datevalue}" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" name="EFFDATE" size="20" readonly="readOnly" /></td>
  </tr>
  <tr>
    <td>{$lbl_cachtinhlai}</td>
    <td><select name="ACRMTHD" size="1">
      {foreach from=$ACRMTHD key=k item=v}
     <option value="{$k}" {if $k eq $activeACRMTHD} selected="selected" {/if} >{$v}</option>
	  {/foreach}
    </select>    </td>
    <td>{$lbl_PRDEDAT}</td>
    <td><input name="PRDEDAT" type="text" id="PRDEDAT" style="background:{$colorPRDEDAT}" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" value="{$PRDEDAT}" size="20" readonly="readOnly" /></td>
  </tr>
  <tr>
    <td>{$lbl_kyhangui}</td>
    <td><input name="FDTERM" id="FDTERM" type="text" value="{$FDTERM}" style="background:{$colorkyhangui}"  size="3" maxlength="3" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright"  />
      <span style="color:#FF0000">*</span>
      <select name="FDTRCD" size="1">
      {foreach from=$FDTRCD key=k item=v}
        <option value="{$k}" {if $k eq $activeFDTRCD} selected="selected" {/if} >{$v}</option>
	  {/foreach}
      </select>      </td>
	<td>{$lbl_kyhanlanhlai}</td>
	<td><input name="INTERM" id="INTERM" type="text" value="{$INTERM}" style="background:{$colorkyhanlanh}" size="3" maxlength="3" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright" />
	  <span style="color:#FF0000">*</span>
	  <select name="INTRCD" size="1" >
      {foreach from=$INTRCD key=k item=v}
	    <option value="{$k}" {if $k eq $activeINTRCD} selected="selected" {/if} >{$v}</option>
	  {/foreach}
	    </select>	</td>
  </tr>
  <tr>
    <td>{$lbl_laisuat}</td>
    <td nowrap="nowrap">
      <input name="INTRATE" type="text" style="background:{$colorlaisuat};" value="{$INTRATE}" size="20" maxlength="12" onblur="formatNumber2(this,this.value,4,4);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright" />
    % n&#259;m <span style="color:#FF0000">*</span></td>
    <td>{$lbl_malaisuat}</td>
    <td><input name="INTCODE" id="INTCODE" type="text" style="background:{$colormaLS}" value="{$INTCODE}" size="20" maxlength="5" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=INTCODE', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat" id="replacement_binoculars" value="     " /></td>
  </tr>
  <tr>
    <td>{$lbl_laisuattoithieu}</td>
    <td><input name="FLRRATE" type="text" style="background:{$colorLSsan};" value="{$FLRRATE}" size="20" maxlength="12" onblur="formatNumber2(this,this.value,4,4);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright" />
      % n&#259;m <span style="color:#FF0000">*</span></td>
    <td>{$lbl_laisuattoida}</td>
    <td nowrap="nowrap"><input name="CEILRATE" type="text" style="background:{$colorLStran};" value="{$CEILRATE}" size="20" maxlength="12" oonblur="formatNumber2(this,this.value,4,4);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright"/>
    % n&#259;m <span style="color:#FF0000">*</span></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_sotienguitoithieu}</td>
    <td><input type="text" name="INITDEP" size="20" maxlength="22" value="{$INITDEP}" onBlur="formatNumber(this,this.value)" style="text-align:right;" onkeypress="return numberOnly(event);"/></td>
    <td>{$lbl_maphat}</td>
    <td nowrap="nowrap"><input name="PENTYP" id="PENTYP" type="text" style="background:{$colormaphat}" value="{$PENTYP}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('ma_phat_id.php?name=PENTYP', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2" id="replacement_binoculars" value="     " /></td>
  </tr>
  
  <tr>
    <td nowrap="nowrap">{$lbl_CIFLIMIT}</td>
    <td><input name="CIFLIMIT" type="text" id="CIFLIMIT" style="text-align:right;" onblur="formatNumber(this,this.value)" value="{$CIFLIMIT}" size="20" maxlength="20" onkeypress="return numberOnly(event);"/></td>
    <td>&nbsp;</td>
    <td nowrap="nowrap">&nbsp;</td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_kyhantoithieu}</td>
    <td><input name="MINTERM" id="MINTERM" type="text" value="{$MINTERM}" style="background:{$colorkyhangui}; text-align:right"  size="3" maxlength="3" onkeypress="return numberOnly(event);"/>
      <span style="color:#FF0000">*</span>
      <select name="MINTERMCD" size="1" >
        
         
			{foreach from=$cboTERMCD key=k item=v}
        
         
        <option value="{$k}" {if $k eq $activeMINTERMCD} selected="selected" {/if} >{$v}</option>
        
         
        {/foreach}
      
       
      </select>
      </td>
    <td>{$lbl_kyhantoida}</td>
    <td nowrap="nowrap"><input name="MAXTERM" id="MAXTERM" type="text" value="{$MAXTERM}" style="background:{$colorkyhanlanh}; text-align:right" size="3" maxlength="3" onkeypress="return numberOnly(event);"/>
      <span style="color:#FF0000">*</span>
      <select name="MAXTERMCD" size="1">
        
        {foreach from=$cboTERMCD key=k item=v}
        
        <option value="{$k}" {if $k eq $activeMAXTERMCD} selected="selected" {/if} >{$v}</option>
        
        {/foreach}
      
      </select>
      </td>
  </tr>
  
  <tr>
    <td colspan="4"><hr /></td>
    </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_laisuatquahan}</td>
    <td><input name="PMRATE" type="text" value="{$PMRATE}" size="20" maxlength="12" onblur="formatNumber2(this,this.value,4,4);" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright" />
    % n&#259;m</td>
    <td>{$lbl_malaisuatquahan}</td>
    <td><input name="PMRATCD" id="PMRATCD" type="text" value="{$PMRATCD}" size="20" maxlength="5" />
      <input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=PMRATCD', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat22" id="replacement_binoculars" value="     " /></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_cosonamtinhlaiquahan}</td>
    <td colspan="3">
	<select name="PMYBASE" size="1" >
      {foreach from=$PMYBASE key=k item=v}
      <option value="{$k}" {if $k eq $activePMYBASE} selected="selected" {/if} >{$v}</option>
	  {/foreach}
    </select>    </td>
    </tr>
  <tr>
    <td>{$lbl_spdaohan}</td>
    <td colspan="3"><select name="RENPRD" size="1">
      <option value=""></option>
      {foreach from=$RENPRD key=k item=v}
      
      <option value="{$k}" {if $k eq $activeRENPRD} selected="selected" {/if} >{$v}</option>
      
	  {/foreach}
    
    </select>    </td>
    </tr>
  

  <tr>
    <td>{$lbl_Renprddft}</td>
    <td colspan="3" nowrap="nowrap"><select name="Renprddft" size="1">
      <option value=""></option>
			  {foreach from=$RENPRD key=k item=v}	  
      <option value="{$k}" {if $k eq $Renprddft} selected="selected" {/if} >{$v}</option>
			  {/foreach}	
    </select></td>
    </tr>
  <tr>
    <td>{$lbl_malaisuatdaohan}</td>
    <td nowrap="nowrap"><input name="RENINCD" id="RENINCD" type="text"  value="{$RENINCD}" size="20" maxlength="5" />
      <input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RENINCD', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat222" id="replacement_binoculars" value="     " /></td>
    <td nowrap="nowrap">{$lbl_maphatdaohan}</td>
    <td nowrap="nowrap"><input name="RENPEN" id="RENPEN" type="text" value="{$RENPEN}" size="20" maxlength="10" />
      <input type="button" onclick="mywindow = window.open('ma_phat_id.php?name=RENPEN', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat223" id="replacement_binoculars" value="     " /></td>
  </tr>
  <tr>
     <td nowrap="nowrap">{$lbl_PREWDTYPE}</td>
     <td nowrap="nowrap"><select name="PREWDTYPE" id="PREWDTYPE">
		{foreach from=$cbo_PREWDTYPE key=k item=v}
       <option value="{$k}" {if $k eq $PREWDTYPE} selected="selected" {/if} >{$k} - {$v}</option>
		{/foreach}
     </select>     </td>
     <td></td>
     <td></td>
   </tr>
   <tr>
    <td>{$lbl_CHGHOLIDAY}</td>
    <td><select name="CHGHOLIDAY" id="CHGHOLIDAY">
      
		{foreach from=$cbo_CHGHOLIDAY key=k item=v}
       
      <option value="{$k}" {if $k eq $CHGHOLIDAY} selected="selected" {/if} >{$k} - {$v}</option>
      
		{/foreach}
     
    </select>   </tr>
  <tr>
    <td colspan="4"><hr /></td>
    </tr>
  

  <tr>
    <td>{$lbl_laibacthang}</td>
    <td><select name="SPLTACR" id="SPLTACR" size="1" onchange="checkspace(this);" >
      {foreach from=$SPLTACR key=k item=v}
      <option value="{$k}" {if $k eq $activeSPLTACR} selected="selected" {/if} >{$v}</option>
	  {/foreach}
    </select>    </td>
    <td>{$lbl_sobacthang}</td>
    <td nowrap="nowrap"><input name="SPLTCNT" id="SPLTCNT" type="text" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" class="textright" value="{$SPLTCNT}" size="5" maxlength="1" onblur="fillInRows(this.value-1);" readonly="readOnly" />
    ({$lbl_toida})</td>
  </tr>
  <tr>
    <td colspan="4"><div align="center">
	<table border="0" cellspacing="1" cellpadding="0" style="width:50%;" id="tblSample">
  <thead>
  <tr>
    <th width="10%">{$lbl_bac}</th>
    <th width="30%">{$lbl_sodu}</th>
     <th width="30%">{$lbl_laisuat}</th>
    <th width="30%">{$lbl_malaisuat}</th>
  </tr>
  </thead>
  <tbody></tbody>
   <tfoot>
  <tr>
  <td colspan="6">
  <input type="button" value="{$themrecord}" class="button_style" onClick="addRowToTable2(null,'','','');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" name="addrecord" id="addrecord"/>  </td>
  </tr>
  </tfoot>
</table>
{$tbldata}
	</div></td>
    </tr>
  <tr>
    <td>{$lbl_TKGLhachtoan}</td>
    <td><input name="GLPRN" id="GLPRN" type="text" style="background:{$colorGLhachtoan}" value="{$GLPRN}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('microbank_id.php?name=GLPRN', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2232" id="replacement_binoculars" value="     " /></td>
    <td>{$lbl_TKGLduchi}</td>
    <td><input name="GLINT1" id="GLINT1" type="text" style="background:{$colorGLduchi}" value="{$GLINT1}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('microbank_id.php?name=GLINT1', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2233" id="replacement_binoculars" value="     " /></td>
  </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_TKGLchophanbo}</td>
    <td nowrap="nowrap"><p>
      <input name="GLINT2" id="GLINT2" type="text" style="background:{$colorGLphanbo}" value="{$GLINT2}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
          <input type="button" onclick="mywindow = window.open('microbank_id.php?name=GLINT2', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2234" id="replacement_binoculars" value="     " />
        </p>      </td>
    <td nowrap="nowrap">{$lbl_TKGLcackhoantra}</td>
    <td nowrap="nowrap"><input name="GLINT3" id="GLINT3" type="text" style="background:{$colorGLtra}" value="{$GLINT3}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('microbank_id.php?name=GLINT3', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2235" id="replacement_binoculars" value="     " /></td>
  </tr>
  <tr>
    <td>{$lbl_TKGLtralai}</td>
    <td><input name="GLINT4" id="GLINT4" type="text" style="background:{$colorGLtralai}" value="{$GLINT4}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('microbank_id.php?name=GLINT4', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2236" id="replacement_binoculars" value="     " /></td>
    <td>{$lbl_TKGLphongtoa}</td>
    <td><input name="GLHOLD" id="GLHOLD" type="text" style="background:{$colorGLphongtoa}" value="{$GLHOLD}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('microbank_id.php?name=GLHOLD', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat2237" id="replacement_binoculars" value="     " /></td>
  </tr>
 	<tr><td colspan="4">
  <hr/>
  </td></tr>
  <tr>
    <td>{$lbl_ChgWE}</td>
    <td><select name="ChgWE" id="ChgWE">
		{foreach from=$cboChgWE key=k item=v} 
      <option value="{$k}" {if $k eq $activeChgWE} selected="selected" {/if} >{$k} - {$v}</option>
		{/foreach}
    </select>
      <span style="color:#FF0000">*</span>    </td>
    <td>{$lbl_ChgVATTp}</td>
    <td><select name="ChgVATTp" id="ChgVATTp">
		{foreach from=$cboChgVATTp key=k item=v}
      <option value="{$k}" {if $k eq $activeChgVATTp} selected="selected" {/if} >{$k} - {$v}</option>
		{/foreach}
    </select>
      <span style="color:#FF0000">*</span>    </td>
  </tr>
  <tr>
    <td>{$lbl_ChgEDay}</td>
    <td><input name="ChgEDay" id="ChgEDay" onkeypress="return numberOnly(event);" type="text" style="background:{$colorChgEDay}" value="{$ChgEDay}" size="20" maxlength="3" />
      <span style="color:#FF0000">*</span></td>
    <td>{$lbl_ChgVATR}</td>
    <td><input name="ChgVATR" type="text" id="ChgVATR" style="text-align:right; background:{$colorChgVATR}" onblur="checkCurrency20(this,this.value); formatNumber2(this,this.value,20,4);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" onkeypress="return numberOnly(event);" value="{$ChgVATR}" size="20" maxlength="20"/>
      <span style="color:#FF0000">*</span></td>
  </tr>
  <tr>
    <td>{$lbl_ChgRate}</td>
    <td><input name="ChgRate" type="text" id="ChgRate" style="text-align:right; background:{$colorChgRate}" onblur="checkCurrency20(this,this.value); formatNumber2(this,this.value,20,4);" onchange="allowOnlyFloatingPointNumbers(this,this.value);" onkeypress="return numberOnly(event);" value="{$ChgRate}" size="20" maxlength="20"/>
      <span style="color:#FF0000">*</span></td>
    <td>{$lbl_ChgAcct}</td>
    <td><input name="ChgAcct" id="ChgAcct" type="text" style="background:{$colorChgAcct}" value="{$ChgAcct}" size="20" maxlength="10" />
      <span style="color:#FF0000">*</span>
      <input type="button" onclick="mywindow = window.open('microbank_id.php?name=ChgAcct', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findChgAcct" id="replacement_binoculars" value="     " /></td>
  </tr>
  <tr>
    <td>{$lbl_ADDBAL}</td>
    <td nowrap="nowrap"><select name="ADDBAL" id="ADDBAL" >
      <option value=" "></option>
      
		{foreach from=$cboADDBAL key=k item=v}
			
      
      <option value="{$k}" {if $k eq $ADDBAL} selected="selected" {/if} >{$k} - {$v}</option>
      
      
		{/foreach}
	
    
    </select></td>
    <td>{$lbl_CHKCSH}</td>
    <td><select name="CHKCSH" size="1" id="CHKCSH">
        <option value=""></option>
      
			{foreach from=$cbo_CHKCSH key=k item=v}
      
      <option value="{$k}" {if $k eq $CHKCSH} selected="selected" {/if} >{$k} - {$v}</option>
          
		{/foreach} 
    
    </select></td>
  </tr>
  <tr>
    <td>{$lbl_Fdtype}</td>
    <td nowrap="nowrap"><select name="Fdtype1" id="Fdtype1"  onchange="showhiddencombo();">
			{foreach from=$cmbFdtype key=k item=v}
				  
      <option value="{$k}" {if $k eq $Fdtype1} selected="selected" {/if} >{$k} - {$v}</option>
      
			{/foreach}	
	    
    </select>    </td>
    <td>{$lbl_CHGMIN}</td>
    <td><input name="CHGMIN" type="text" id="CHGMIN" style="background:{$colorCHGMIN}; text-align:right;" onblur="formatNumber2(this,this.value,18,2);" onkeyup="getvaluemin();" onkeypress="return numberOnly(event);" value="{$CHGMIN}" size="20" maxlength="20"/><input type="hidden" value="{$tmp1}" name="tmp1" id="tmp1" /><input type="hidden" value="{$tmp2}" name="tmp2" id="tmp2" />
      <input type="submit" name="tmpminmax" id="tmpminmax" style="visibility:hidden"  value=""/></td>
  </tr>
  <tr>
     <td><div id="tmplbl" {if $activehidden eq 'true' }  style="visibility:hidden" {/if}>{$lbl_BNDCODE}</div></td>
     <td nowrap="nowrap"  style="color:#FF0000"><select name="BNDCODE" id="BNDCODE" {if $activehidden eq 'true' }  style="visibility:hidden" {/if} >
	 	<option value=""></option>
			{foreach from=$cbo_BNDCODE key=k item=v}
       <option value="{$k}" {if $k eq $BNDCODE} selected="selected" {/if} >{$k} - {$v}</option>
			{/foreach}	
     </select>
      <span id="tmpbb" {if $activehidden eq 'true' }  style="visibility:hidden" {/if}> * </span>    </td>
     <td nowrap="nowrap" style="color:#FF0000"></td>
     <td nowrap="nowrap">&nbsp;</td>
   </tr>
  <tr>
    <td>{$lbl_CURINFD}</td>
    <td nowrap="nowrap"><select name="CURINFD" id="CURINFD" style="background:{$colorCURINFD}" >
        <option value=""></option>
			{foreach from=$cbo_INTADDON key=k item=v}  
      <option value="{$k}" {if $k eq $CURINFD} selected="selected" {/if} >{$k} - {$v}</option> 
			{/foreach}	
    </select></td>
    <td nowrap="nowrap">{$lbl_CHGMAX}</td>
    <td nowrap="nowrap"><input name="CHGMAX" type="text" id="CHGMAX" style="background:{$colorCHGMAX}; text-align:right;" onblur="formatNumber2(this,this.value,18,2);" onkeypress="return numberOnly(event);" value="{$CHGMAX}" onkeyup="getvaluemax();" size="20" maxlength="20"/></td>
  </tr>
  <tr>
    <td>{$lbl_INTADDON}</td>
    <td nowrap="nowrap"><select name="INTADDON" id="INTADDON" style="background:{$colorINTADDON}" onchange="kiemtranhapgoc();" >
      <option value=""></option>  
			{foreach from=$cbo_INTADDON key=k item=v}
      <option value="{$k}" {if $k eq $INTADDON} selected="selected" {/if} >{$k} - {$v}</option>
			{/foreach}	
    </select></td>
    <td nowrap="nowrap">{$lbl_INTDISP}</td>
    <td nowrap="nowrap"><select name="INTDISP" id="INTDISP" style="background:{$colorINTDISP}" {if $activeform eq 'enabled' } disabled="disabled" {/if} >
      <option value=""></option>
			{foreach from=$cbo_INTDISP key=k item=v}
      <option value="{$k}" {if $k eq $INTDISP} selected="selected" {/if} >{$k} - {$v}</option>
			{/foreach}	
    </select></td>
  </tr>
  <tr>
    <td>{$lbl_CURINTDISP}</td>
    <td nowrap="nowrap"><select name="CURINTDISP" id="CURINTDISP" style="background:{$colorCURINTDISP}" {if $activeform eq 'enabled' } disabled="disabled" {/if} >
      <option value=""></option>
			{foreach from=$cbo_CURINTDISP item=v}
      <option value="{$v}" {if $v eq $CURINTDISP} selected="selected" {/if} >{$v}</option>
			{/foreach}	
    </select></td>
    <td nowrap="nowrap">{$lbl_GLINT5}</td>
    <td nowrap="nowrap"><input name="GLINT5" type="text" id="GLINT5" style="background:{$colorGLINT5}" value="{$GLINT5}" size="20" maxlength="10" {if $activeform eq 'enabled' } readonly="readonly" {/if}/>
      <span style="color:#FF0000">
      <input type="button" onclick="mywindow = window.open('microbank_id_gl.php?name=GLINT5', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="findlaisuat22322" id="replacement_binoculars" value="     " />
      </span></td>
  </tr>  
 	<tr>
     <td>{$lbl_WRNINFO1}</td>
     <td colspan="3" nowrap="nowrap"><span style="color:#FF0000">
       <input name="WRNINFO1" id="WRNINFO1" type="text" style="background:{$colorWRNINFO1}" value="{$WRNINFO1}" size="50" maxlength="50" />
       <input type="button" name="add_WRNINFO1" id="add_WRNINFO1" value="{$ten_them_moi}"  class="button_style" onclick="add_new_WRNINFO1();" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
       <input name="delete_WRNINFO1" onclick="delete_WRNINFO1_1();" id="delete_WRNINFO1" type="button" value=" {$ten_xoa} " class="button_style"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
</span></td>
    </tr>
   <tr>
     <td>&nbsp;</td>
     <td colspan="3" nowrap="nowrap"><textarea name="LIST_WRNINFO1" cols="60" readonly="readonly" id="LIST_WRNINFO1">{$LIST_WRNINFO1}</textarea></td>
    </tr>
   <tr>
     <td>{$lbl_WRNINFO2}</td>
     <td colspan="3" nowrap="nowrap"><span style="color:#FF0000">
       <input name="WRNINFO2" id="WRNINFO2" type="text" style="background:{$colorWRNINFO2}" value="{$WRNINFO2}" size="50" maxlength="50" />
       <input type="button" name="add_WRNINFO2" id="add_WRNINFO2" value="{$ten_them_moi}"  class="button_style" onclick="add_new_WRNINFO2();" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
       <input name="delete_WRNINFO2" onclick="delete_WRNINFO2_2();" id="delete_WRNINFO2" type="button" value=" {$ten_xoa} " class="button_style"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
</span></td>
   </tr>
   <tr>
     <td>&nbsp;</td>
     <td colspan="3" nowrap="nowrap"><textarea name="LIST_WRNINFO2" cols="60" readonly="readonly" id="LIST_WRNINFO2">{$LIST_WRNINFO2}</textarea></td>
    </tr>
 
 	<tr>
	 	<td colspan="4"><hr /></td>
	</tr>
	<tr>
		<td>{$lbl_TERMNO}</td>
	 	<td><input name="TERMNO_" id="TERMNO_" type="text" value="{$TERMNO_}" size="20" maxlength="1" onkeypress="return numberOnly(event);" onblur="getTERMNO_();"/></td>
	</tr>
	
	<tr>
		<td>
			{$lbl_TERM1}
			<input name="TERM1" id="TERM1" style="background:{$colornameTERM1}" {$nameTERM1} type="text" value="{$TERM1}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD1}
			<select name="TRMCD1" size="1" id="TRMCD1" {$nameTRMCD1}{$disableCombobox}  >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD1} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD1}
			<input name="RATECD1" id="RATECD1" {$nameTERM1} style="background:{$colornameRATECD1}" type="text" value="{$RATECD1}" size="7" maxlength="5"/>	
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD1', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />				</td>
	  <td>
			{$lbl_RATE1}
			<input name="RATE1" id="RATE1" {$nameTERM1} style="background:{$colornameRATE1}" type="text" value="{$RATE1}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%				</td>
	</tr>
	<tr>
		<td>
			{$lbl_TERM2}
			<input name="TERM2" id="TERM2" {$nameTERM2} style="background:{$colornameTERM2}" type="text" value="{$TERM2}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD2}
			<select name="TRMCD2" size="1" id="TRMCD2" {$nameTRMCD2}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD2} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD2}
			<input name="RATECD2" id="RATECD2" {$nameTERM2} style="background:{$colornameRATECD2}" type="text" value="{$RATECD2}" size="7" maxlength="5"/>	
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD2', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />				</td>
		<td>
			{$lbl_RATE2}
			<input name="RATE2" id="RATE2" {$nameTERM2} style="background:{$colornameRATE2}" type="text" value="{$RATE2}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
	<tr>
		<td>
			{$lbl_TERM3}
			<input name="TERM3" id="TERM3" {$nameTERM3} type="text" style="background:{$colornameTERM3}" value="{$TERM3}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD3}
			<select name="TRMCD3" size="1" id="TRMCD3" {$nameTRMCD3}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD3} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD3}
			<input name="RATECD3" id="RATECD3" {$nameTERM3} style="background:{$colornameRATECD3}" type="text" value="{$RATECD3}" size="7" maxlength="5"/>	
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD3', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />				</td>
		<td>
			{$lbl_RATE3}
			<input name="RATE3" id="RATE3" {$nameTERM3} style="background:{$colornameRATE3}" type="text" value="{$RATE3}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
	<tr>
		<td>
			{$lbl_TERM4}
			<input name="TERM4" id="TERM4" {$nameTERM4} type="text" style="background:{$colornameTERM4}" value="{$TERM4}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD4}
			<select name="TRMCD4" size="1" id="TRMCD4" {$nameTRMCD4}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD4} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD4}
			<input name="RATECD4" id="RATECD4" {$nameTERM4} style="background:{$colornameRATECD4}" type="text" value="{$RATECD4}" size="7" maxlength="5"/>	
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD4', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />				</td>
		<td>
			{$lbl_RATE4}
			<input name="RATE4" id="RATE4" {$nameTERM4} type="text" style="background:{$colornameRATE4}" value="{$RATE4}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
	<tr>
		<td>
			{$lbl_TERM5}
			<input name="TERM5" id="TERM5" {$nameTERM5} type="text" style="background:{$colornameTERM5}" value="{$TERM5}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD5}
			<select name="TRMCD5" size="1" id="TRMCD5" {$nameTRMCD5}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD5} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD5}
			<input name="RATECD5" id="RATECD5" {$nameTERM5} style="background:{$colornameRATECD5}" type="text" value="{$RATECD5}" size="7" maxlength="5"/>	
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD5', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />				</td>
		<td>
			{$lbl_RATE5}
			<input name="RATE5" id="RATE5" {$nameTERM5} style="background:{$colornameRATE5}" type="text" value="{$RATE5}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
	<tr>
		<td>
			{$lbl_TERM6}
			<input name="TERM6" id="TERM6" {$nameTERM6} style="background:{$colornameTERM6}" type="text" value="{$TERM6}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD6}
			<select name="TRMCD6" size="1" id="TRMCD6" {$nameTRMCD6}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD6} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD6}
			<input name="RATECD6" id="RATECD6" {$nameTERM6} style="background:{$colornameRATECD6}" type="text" value="{$RATECD6}" size="7" maxlength="5"/>	
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD6', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />				</td>
		<td>
			{$lbl_RATE6}
			<input name="RATE6" id="RATE6" {$nameTERM6} style="background:{$colornameRATE6}" type="text" value="{$RATE6}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
	<tr>
	  <td>
			{$lbl_TERM7}
			<input name="TERM7" id="TERM7" {$nameTERM7} style="background:{$colornameTERM7}" type="text" value="{$TERM7}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD7}
			<select name="TRMCD7" size="1" id="TRMCD7" {$nameTRMCD7}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD7} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD7}
			<input name="RATECD7" id="RATECD7" {$nameTERM7} style="background:{$colornameRATECD7}" type="text" value="{$RATECD7}" size="7" maxlength="5"/>
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD7', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />					</td>
		<td>
			{$lbl_RATE7}
			<input name="RATE7" id="RATE7" style="background:{$colornameRATE7}" {$nameTERM7} type="text" value="{$RATE7}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
	<tr>
		<td>
			{$lbl_TERM8}
			<input name="TERM8" id="TERM8" {$nameTERM8} type="text" style="background:{$colornameTERM8}" value="{$TERM8}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD8}
			<select name="TRMCD8" size="1" id="TRMCD8" {$nameTRMCD8}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD8} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD8}
			<input name="RATECD8" id="RATECD8" {$nameTERM8} style="background:{$colornameRATECD8}" type="text" value="{$RATECD8}" size="7" maxlength="5"/>
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD8', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />					</td>
		<td>
			{$lbl_RATE8}
			<input name="RATE8" id="RATE8" {$nameTERM8} style="background:{$colornameRATE8}" type="text" value="{$RATE8}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
	<tr>
		<td>
			{$lbl_TERM9}
			<input name="TERM9" id="TERM9" {$nameTERM9} type="text" style="background:{$colornameTERM9}" value="{$TERM9}" size="10" maxlength="3" onkeypress="return numberOnly(event);"/>		</td>
		<td>
			{$lbl_TRMCD9}
			<select name="TRMCD9" size="1" id="TRMCD9" {$nameTRMCD9}{$disableCombobox} >
			{foreach from=$cboTRMCD key=k item=v}
	  
	  <option value="{$k}" {if $k eq $TRMCD9} selected="selected" {/if}>{$k} - {$v}</option>
	  
			{/foreach}
	  
	  </select>		</td>
		<td>
			{$lbl_RATECD9}
			<input name="RATECD9" id="RATECD9" {$nameTERM9} style="background:{$colornameRATECD9}" type="text" value="{$RATECD9}" size="7" maxlength="5"/>	
			<input type="button" onclick="mywindow = window.open('lai_suat_id.php?name=RATECD9', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="code_laixuat" id="replacement_binoculars" value="     " />				</td>
		<td>
			{$lbl_RATE9}
			<input name="RATE9" id="RATE9" {$nameTERM9} style="background:{$colornameRATE9}" type="text" value="{$RATE9}" size="10" maxlength="10" onBlur="checkDecimal(this,this.value)" onkeypress="return numberOnly(event);" onchange="allowOnlyFloatingPointNumbers(this,this.value);"/>%		</td>
	</tr>
 
<tr>
<td colspan="4" align="right" nowrap="nowrap">
    <input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="activeform(this.form,'PRDCODE');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
    <input type="submit" name="capnhat" value="{$ten_cap_nhat}" {if $activefield eq 'disabled' }disabled="disabled" {/if} class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
  </tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap">
<input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
<input name="detail" type="submit" value="{$ten_chitiet}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>

<tr>
<td colspan="2">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="2"> 
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
   {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
